<?php

class Session extends CActiveRecord {
	public static function model($className = __CLASS__) {
		return parent::model ( $className );
	}
	
	public function tableName() {
		return '{{sessions}}';
	}
	
	public function rules() {
		return array (
			
			array (
				
				'sessid', 
				'required' 
			), 
			array (
				
				'session_last_access,session_data,inputtime', 
				'safe' 
			) 
		);
	}
	
	public function attributeLabels() {
		return array (
			
			'sessid' => 'sessid', 
			'session_last_access' => 'session_last_access', 
			'session_data' => 'session_data', 
			'inputtime' => 'inputtime' 
		);
	}
}